﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Office.Master" AutoEventWireup="true" Codebehind="AddEditItem.aspx.cs" Inherits="ASPNETVN.PORTAL.Modules.CONTACT.AddEditItem" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="ModuleContent">
        <asp:Label ID="lblHeader" runat="server" SkinID="Header" Text="Add / Edit Comtact"></asp:Label>
        <hr />
        <br />
        <table cellpadding="6" cellspacing="1" border="0" class="Panel" style="width: 100%">
            <tbody>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label1" runat="server" Text="Họ tên"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" CssClass="Error" Display="Dynamic" ErrorMessage="Chưa nhập họ tên"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label2" runat="server" Text="Chức danh"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtRole" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtRole" CssClass="Error" Display="Dynamic" ErrorMessage="Chưa nhập chức danh"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label3" runat="server" Text="Email"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEmail" CssClass="Error" Display="Dynamic" ErrorMessage="Chưa nhập email"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" CssClass="Error" Display="Dynamic" ErrorMessage="Email không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label4" runat="server" Text="Điện thoại"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtContact1" runat="server" Width="300px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label5" runat="server" Text="Di động"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtContact2" runat="server" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label6" runat="server" Text="Fax"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtFax" runat="server" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label7" runat="server" Text="Địa chỉ"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:TextBox ID="txtAddress" runat="server" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label8" runat="server" Text="Tạo bởi"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:Label ID="lblCreatedBy" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="LeftColumn">
                        <asp:Label ID="Label9" runat="server" Text="Tạo lúc"></asp:Label>
                    </td>
                    <td style="width: 100%" class="RightColumn">
                        <asp:Label ID="lblCreationTime" runat="server"></asp:Label>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <hr />
        <br />
        <div style="text-align: right">
            <asp:LinkButton ID="btnUpdate" Text="Ghi" runat="server" />
            <asp:LinkButton ID="btnCancel" Text="Quay lại" runat="server" />
            <asp:LinkButton ID="btnDelete" Text="Xóa" runat="server" /></div>
        <br />
        <br />
    </div>
</asp:Content>
